package run;

import env.Env;
import processing.core.PApplet;
import processing.core.PConstants;
import processing.core.PImage;
import render.Renderer;


/*
 * 
 * Nota bene; best way to do openGl in here is to
 * 
 * import all the .jars in libraries/opengl
 * 
 * right click jogl.jar
 * point the 'native libraries' to a directory containing all the .dll and .jnilib files
 */
public class Main extends PApplet {

	private static final int BGCOLOR = 0;
	public Renderer renderer;
	public Env env;
	  public void setup() {
	    size(800, 600, PConstants.P2D);
	    
	    //rectMode(CENTER);
	    noStroke();
	    smooth();
	    background(BGCOLOR);

	    env = Env.env;
	    renderer = new Renderer(this, env);
	  }

	  public void draw() {
			
	    env.calculate();
	    renderer.display();
	  }
	  
	  
}

	